package com.ruksis.motogeek;

import android.os.Message;

public class MotoMessage  {
	
	public static final int LEAN_ANGLE = 1;
	public static final int SPEED = 2;
	public static final int GFORCE = 1;
	
	public static Message obtainLeanMessage(float leanAngle) {
		Message _msg = Message.obtain();
		_msg.what = LEAN_ANGLE;
		_msg.obj = new Float(leanAngle);
		return _msg;
	}

	public static Message obtainSpeedMessage(float speed) {
		Message _msg = Message.obtain();
		_msg.what = SPEED;
		_msg.obj = new Float(speed);
		return _msg;
	}
	
	public static Message obtainGForceMessage(float gforce) {
		Message _msg = Message.obtain();
		_msg.what = GFORCE;
		_msg.obj = new Float(gforce);
		return _msg;
	}
	
}
